/*
Kakine
ActionScript Framework
Copyright © 2011, PUNY, LLC.

This file is part of KAKINE.

KAKINE is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

KAKINE is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with KAKINE.  If not, see <http://www.gnu.org/licenses/>.
*/ 
package com.puny.mvc.views.effect.events
{
	import flash.events.Event;
	import flash.geom.Point;

	/**
	 * @private
	 * Particle Event Class
	 * deprecated
	 */
	public class ParticleEvent extends Event
	{
		/**
		 * Dispatched when one cycle of a particle ends.
		 */
		public static const END_OF_CYCLE:String = "end of cycle";
		private var _position:Point;
		private var _velocity:Point;
		/**
		 * Constructor
		 */
		public function ParticleEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
		/**
		 * position where this event occurs.
		 */
		public function set position(value:Point):void {
			_position = value;
		}

		/**
		 * velocity when this event occurs.
		 */
		public function set velocity(value:Point):void {
			_velocity = value;
		}

		/**
		 * position where this event occurs.
		 */
		public function get position():Point {
			return _position;
		}

		/**
		 * velocity when this event occurs.
		 */
		public function get velocity():Point {
			return _velocity;
		}
	}
}